var ec_left1 = echarts.init(document.getElementById('l1'));

var ec_left1_Option = {
   animationDuration: 20000,
   title: {
    text: '7.15-10.11'
  },
  color: ['#00DDFF','#80FFA5', '#37A2FF', '#FF0087', '#FFBF00'],
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'cross',
      label: {
        backgroundColor: '#6a7985'
      }
    }
  },
  legend: {
    data: ['新增本土', '新增本土无症状']
  },
  toolbox: {
    feature: {
      saveAsImage: {}
    }
  },
  grid: {
    left: '3%',
    right: '4%',
    bottom: '3%',
    containLabel: true
  },
  xAxis: [
    {
      type: 'category',
      boundaryGap: false,
      data:[]
//      data: ['7.15', '7.16', '7.17', '7.18', '7.19', '7.20', '7.21', '7.22', '7.23', '7.24', '7.25', '7.26', '7.27', '7.28', '7.29', '7.30', '7.31', '8.1', '8.2', '8.3', '8.4', '8.5', '8.6', '8.7', '8.8', '8.9', '8.10', '8.11', '8.12', '8.13', '8.14', '8.15', '8.16', '8.17', '8.18', '8.19', '8.20', '8.21', '8.22', '8.23', '8.24', '8.25', '8.26', '8.27', '8.28', '8.29', '8.30', '8.31', '9.1', '9.2', '9.3', '9.4', '9.5', '9.6', '9.7', '9.8', '9.9', '9.10', '9.11', '9.12', '9.13', '9.14', '9.15', '9.16', '9.17', '9.18', '9.19', '9.20', '9.21', '9.22', '9.23', '9.24', '9.25', '9.26', '9.27', '9.28', '9.29', '9.30', '10.1', '10.2', '10.3', '10.4', '10.5', '10.6', '10.7', '10.8', '10.9', '10.10', '10.11', '10.12']
    }
  ],
  yAxis: [
    {
      type: 'value'
    }
  ],
  series: [
    {
      name: '新增本土',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
        color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
          {
            offset: 0,
            color: 'rgb(128, 255, 165)'
          },
          {
            offset: 1,
            color: 'rgb(1, 191, 236)'
          }
        ])
      },
      emphasis: {
        focus: 'series'
      },
      data:[]
//      data: [375, 474, 393, 500, 827, 678, 774, 594, 782, 579, 770, 525, 435, 390, 271, 360, 244, 327, 251, 241, 248, 275, 399, 483, 478, 572, 1466, 1305, 1359, 1844, 1620, 1935, 2322, 2810, 2119, 1591, 1628, 1464, 1440, 1261, 1369, 1239, 1106, 1035, 1255, 1368, 1326, 1596, 1567, 1379, 1359, 1249, 1235, 1247, 1093, 1033, 994, 959, 785, 727, 762, 823, 825, 505, 930, 715, 525, 485, 512, 627, 624, 601, 597, 636, 625, 526, 625, 549, 432, 466, 626, 747, 1005, 1267, 1301, 1307, 1566, 1662, 1386, 1154]
    },
    {
      name: '新增本土无症状',
      type: 'line',
      stack: 'Total',
      smooth: true,
      lineStyle: {
        width: 0
      },
      showSymbol: false,
      areaStyle: {
        opacity: 0.8,
        color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
          {
            offset: 0,
            color: 'rgb(0, 221, 255)'
          },
          {
            offset: 1,
            color: 'rgb(77, 119, 255)'
          }
        ])
      },
      emphasis: {
        focus: 'series'
      },
      data:[]
//      data: [75, 106, 117, 199, 108, 148, 106, 128, 87, 101, 98, 79, 86, 60, 49, 74, 33, 46, 38, 53, 162, 310, 337, 324, 350, 380, 614, 648, 646, 623, 692, 530, 566, 614, 559, 578, 553, 360, 308, 380, 345, 262, 250, 259, 301, 349, 349, 307, 318, 440, 314, 303, 264, 323, 241, 259, 239, 179, 164, 188, 196, 126, 102, 76, 106, 92, 104, 123, 114, 121, 129, 159, 235, 173, 119, 106, 97, 106, 116, 189, 250, 223, 183, 216, 447, 441, 373, 427, 374, 322]
    },
  ]
};

ec_left1.setOption(ec_left1_Option);
